public class 回顾4 {
    public static void main(String[] args) {
        int sum =0;
        int [][]arr={{1,1,1},{2,2,2},{3,3,3},{4,4,4}};
        for (int i = 0; i < arr.length; i++) {

            for (int j = 0; j < arr[i].length; j++) {
            sum+=arr[i][j];
            }

        }

        System.out.println(sum);
    }


}
